home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
program
/
570
/
include
/
fplib.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-11-15
|
488b
|
22 lines
/* Common definitions for FPLIB */
/* Copyright = David Brooks, 1989 All Rights Reserved */
#ifndef MATH_H
#include <math.h> /* Now they're all defined */
#endif
/* Some facts about the representation */
#define BIAS 0x40
#define MANT_BITS 24
#define EXP_MASK 0x7F
#define HUGE_AS_INT 0xFFFFFF7F
/* Redefine a 32-bit float number. Can initialize with unsigned long. */
typedef union {
unsigned long ul;
float f;
char sc[4]; /* Assuming char signed */
} fstruct;